package cn.com.yx.ms.persistence;

import cn.com.yx.ms.domain.auth.DevActiveModel;
import cn.com.yx.ms.domain.auth.LicenseUseConditionModel;
import cn.com.yx.ms.domain.auth.ServerInfoModel;
import cn.com.yx.ms.domain.dbmodel.AuthClientServerInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuthClientServerInfoMapper {
    int deleteByPrimaryKey(String guid);

    int insert(AuthClientServerInfo record);

    int insertSelective(AuthClientServerInfo record);

    AuthClientServerInfo selectByPrimaryKey(String guid);

    int updateByPrimaryKeySelective(AuthClientServerInfo record);

    int updateByPrimaryKeyWithBLOBs(AuthClientServerInfo record);

    int updateByPrimaryKey(AuthClientServerInfo record);

    ServerInfoModel findServerInfoModel();

    /**
     * 本服务器授权License
     * @return
     */
    List<LicenseUseConditionModel> findLicUseConditionByServerId();

    /**
     * 本服务器激活设备
     * @return
     */
    List<DevActiveModel> findDevActiveByServerId();

    /**
     * 是否存在服务器信息
     * @return
     */
    int isExistServerInfo();
}